


GTEST_INCLUDE = ./gtest/include
GTEST_LIB = ./gtest/lib

SRC_DIR = ../src/*.cpp
SRC_INCLUDE = ../include/*.h


TEST_DIR += ./src/*.cpp 


# Flags passed to the preprocessor.
CPPFLAGS += -I$(GTEST_INCLUDE) \
            -I${GTEST_INCLUDE}/gtest/internal

# Flags passed to the C++ compiler.
CXXFLAGS += -g -Wall -Wextra

ALL: test

#test.o: ${TEST_DIR}
#	g++ ${CPPFLAGS} ${CXXFLAGS} -c ${TEST_DIR}

test: ${TEST_DIR}
	 g++ ${CPPFLAGS} ${CXXFLAGS} -o test ${TEST_DIR}  -L${GTEST_LIB} -lgtest_main